package com.syu.loopcure.compensator.controller;


import com.syu.loopcure.compensator.service.ToolCureCompensatorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 工具tool-core中补偿机制信息记录表 前端控制器
 * </p>
 *
 * @author zhucun
 * @since 2020-08-12
 */
@RestController
@RequestMapping("/compensator")
public class ToolCureCompensatorController{
    

    private final ToolCureCompensatorService toolCureCompensatorService;

    @Autowired
    public ToolCureCompensatorController(ToolCureCompensatorService toolCureCompensatorService){
        this.toolCureCompensatorService = toolCureCompensatorService;
    }

    @PostMapping("/_test")
    public Object test(String userId,String merCode){
        toolCureCompensatorService.test(userId,merCode);
        return "触发成功";
    }
}

